package com.axjy.web;

import com.axjy.dao.RoleMapper;
import com.axjy.pojo.Role;
import com.axjy.service.RoleService;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by zjn on 2018/2/3.
 */
@RestController
@RequestMapping("/role/role")
public class RoleHandler {

    @Resource
    private RoleService roleService;

    @GetMapping("/list")
    public List<Role> list(){
        return roleService.list();
    }
}
